import request from '@/utils/request'

// 查询压降分析列表
export function listDispatchPressureDrop(query) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/list',
    method: 'get',
    params: query
  })
}

// 查询压降分析详细
export function getDispatchPressureDrop(pressureDropId) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/' + pressureDropId,
    method: 'get'
  })
}

// 新增压降分析
export function addDispatchPressureDrop(data) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop',
    method: 'post',
    data: data
  })
}

// 修改压降分析
export function updateDispatchPressureDrop(data) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop',
    method: 'put',
    data: data
  })
}

// 删除压降分析
export function delDispatchPressureDrop(pressureDropId) {
  return request({
    url: '/dispatch/system/dispatchPressureDrop/' + pressureDropId,
    method: 'delete'
  })
}
